#!/bin/bash
#npm install s.js
#npm install shuimin-popup

browserify -r ./js-app/API.js:API \
           -r ./js-app/locale.js:locale \
           -r ./js-app/DateUtil.js:DateUtil \
           -r ./js-app/static_value.js:StaticValue \
           -r ./js-app/misc/aggrid.grouprow.js:group-row \
           -r ./js-app/misc/aggrid.aggstage.js:agg-stage \
           -r ./js-app/misc/aggrid.set-filter.js:set-filter \
           -r ./js-app/misc/aggrid.renderer_in_percent.js:renderer-in-percent \
           -r ./js-app/directives/angular.sorter.js:angular-sorter \
           -r ./js-app/directives/angular.checkboxes.js:angular-checkboxes \
           -r ./js-app/directives/angular.filter.js:angular-filter \
           -r ./js-app/directives/angular.datetimepicker.js:angular-datetimepicker \
           -r ./js-app/directives/angular.userpicker.js:angular-userpicker \
           -r ./js-app/directives/angular.shoppicker.js:angular-shoppicker \
           -r ./js-app/directives/angular.member_shoppicker.js:angular-member-shoppicker \
           -r ./js-app/directives/angular.salesmanpicker.js:angular-salesmanpicker \
           -r ./js-app/directives/angular.evaluatorpicker.js:angular-evaluatorpicker \
           -r ./js-app/directives/angular.vehicledemopicker.js:angular-vehicledemopicker \
           -r ./js-app/directives/angular.vehiclemodelpicker.js:angular-vehiclemodelpicker \
           -r ./js-app/directives/angular.vehiclemodelinput.js:angular-vehiclemodelinput \
           -r ./js-app/directives/angular.vehiclemodelcascadeselector.js:angular-vehiclemodelcascadeselector \
           -r ./js-app/common/vehicle_model.aggrid.js:VehicleModel.aggrid \
           -r ./js-app/common/popup.js:popup \
           -r ./js-app/admin/users/users.inc.js:user-inc \
           -r ./js-app/admin/shops/shops.inc.js:shop-inc \
           -r ./js-app/admin/controllers/home.js:HomeController \
           -r ./js-app/admin/controllers/users.js:UserController \
           -r ./js-app/admin/controllers/roles.js:RoleController \
           -r ./js-app/admin/controllers/shops.js:ShopController \
           -r ./js-app/admin/controllers/shop_sorter.js:ShopSorterController \
           -r ./js-app/admin/controllers/ranks.js:RanksController \
           -r ./js-app/admin/controllers/privileges.js:PrivilegesController \
           -r ./js-app/admin/controllers/shop-user.js:ShopUserController \
           -r ./js-app/common/order_insurance.aggrid.js:OrderInsurance.aggrid \
           -r ./js-app/common/order_insurance.aggrid.js:OrderInsurance.aggrid \
           -r ./js-app/common/order_loan.aggrid.js:OrderLoan.aggrid \
    -r ./js-app/admin/users/users.ctrl.js:users_ctrl \
    -r ./js-app/admin/privileges/privileges.ctrl.js:privileges_ctrl \
    -r ./js-app/admin/ranks/ranks.ctrl.js:ranks_ctrl \
    -r ./js-app/admin/shops/shops.ctrl.js:shops_ctrl \
    -r ./js-app/admin/shop_user/shop_user.ctrl.js:shop_user_ctrl \
    -r ./js-app/admin/set_user/set_user.ctrl.js:set_user_ctrl \
		-r ./js-app/customer_service/question/question.ctrl.js:question_ctrl \
		-r ./js-app/customer_service/question/question.aggrid.js:question.aggrid \
		-r ./js-app/customer_service/temp/temp.ctrl.js:temp_ctrl \
		-r ./js-app/customer_service/temp/temp.aggrid.js:temp.aggrid \
		-r ./js-app/customer_service/temp/temp_display.ctrl.js:temp_display_ctrl \
		-r ./js-app/customer_service/order/order.ctrl.js:order_ctrl \
		-r ./js-app/customer_service/order/order.aggrid.js:order.aggrid \
		-r ./js-app/customer_service/order/order_display.ctrl.js:order_display_ctrl \
           > ./target/app.js

